PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.text Package / PDFTextEngine Class / getStringHeight Method / getStringHeight(String,PDFFont,PDFStringLayoutOptions) Method
String to measure.
Font used to draw the string.
Layout options that affect the string
In This Topic
    getStringHeight(String,PDFFont,PDFStringLayoutOptions) Method
    In This Topic
    Gets the height of the string wrapped at the specified width.
    Syntax
    public static double getStringHeight( 
       java.lang.String s,
       PDFFont font,
       PDFStringLayoutOptions slo
    )

    Parameters

    s
    String to measure.
    font
    Font used to draw the string.
    slo
    Layout options that affect the string

    Return Value

    The total height of the text lines.
    See Also